<%--
  User: Shengzhao Li
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>事件</title>
</head>
<body>
<%--event form page--%>
<div id="event_form_page" data-role="page" class="page">
    <div data-role="header" data-theme="f">
        <a href="${contextPath}/m/dashboard" data-icon="home" data-direction="reverse"
           data-transition="slide">主页</a>

        <h1>事件</h1>
        <a href="javascript:void(0);" data-icon="arrow-l" data-rel="back">返回</a>
    </div>
    <div data-role="content">
        <form:form commandName="eventDto" id="event_form" data-ajax="false" onsubmit="$.mobile.showPageLoadingMsg();">
            <ul data-role="listview" data-inset="true">
                <li>
                    <div data-role="fieldcontain">
                        <label for="name">名称:</label>
                        <form:input path="name" id="name" placeholder="事件名称"/>
                        <form:errors path="name" cssClass="form_error"/>
                    </div>
                    <div data-role="fieldcontain">
                        <label for="description">描述:</label>
                        <form:textarea path="description" id="description" placeholder="描述"/>
                    </div>
                </li>
                <li>
                    <div data-role="fieldcontain">
                        <button type="submit" data-theme="b" data-icon="plus">保存</button>
                        <a href="overview" data-theme="c" data-icon="delete" data-role="button"
                           data-direction="reverse" data-transition="flip">取消</a>
                    </div>
                </li>
            </ul>
        </form:form>
    </div>
</div>
</body>
</html>